package net.dongbob;

import javax.swing.*;

import static net.dongbob.Utils.reset;

public class MainFrame extends JFrame
{
    public MainFrame(String title, int width, int height, JComponent jComponent)
    {
        reset();
        setTitle(title);
        setSize(width,height);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setContentPane(jComponent);
        setUndecorated(true);
        setLocationRelativeTo(null);
        setVisible(true);
    }
}
